package com.oneday.nuo.base.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.oneday.nuo.base.dto.NuoMenuDTO;
import com.oneday.nuo.base.entity.NuoMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (NuoMenu)表数据库访问层
 *
 * @author liushuai
 * @since 2021-03-13 23:37:24
 */
@Mapper
public interface NuoMenuDAO extends BaseMapper<NuoMenuEntity> {

    List<String> queryMenuIdByPid(@Param("pid") String pid);
   /**
    * 根据用户id获取菜单
    * @Author: liushuai
    * @Date: 2021/4/4 22:58
    * @param : * @param wrapper
    * @return :java.util.List<com.oneday.nuo.base.dto.NuoMenuDTO>
    **/
    List<NuoMenuDTO> queryMenuByUserId(@Param(Constants.WRAPPER) QueryWrapper wrapper);
}